<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <div id="root">
        {{name}}
        <button @click="fn1">111</button>
        {{a+b}}
        <button @click="fn2">222</button>
        {{c}}
        <div title="333">div333</div>
    </div>
    <script src="blue.js"></script>
    <script>
    let blue = new Blue({
        root:'#root',
        data(){
            return {
                name:'blue',
                a:12,
                b:55,
                c:8
            }
        },
        methods:{
            fn1(){
                this.a += 1;
                console.log('fn1');
            },
            fn2(){
                this.b += 2;
                console.log('fn2');
            }
        }
    });
    </script>
</body>
</html>